/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_Page_SubmitVO_ } from '../models/BaseResponse_Page_SubmitVO_';
import type { BaseResponse_SubmitVO_ } from '../models/BaseResponse_SubmitVO_';
import type { SubmitAddRequest } from '../models/SubmitAddRequest';
import type { SubmitQueryRequest } from '../models/SubmitQueryRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class SubmitControllerService {
    /**
     * submitQuestion
     * @param submitAddRequest submitAddRequest
     * @returns BaseResponse_long_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static submitQuestionUsingPost(
        submitAddRequest: SubmitAddRequest,
    ): CancelablePromise<BaseResponse_long_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/submit/add',
            body: submitAddRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getSubmitVOById
     * @param id id
     * @returns BaseResponse_SubmitVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static getSubmitVoByIdUsingPost(
        id?: number,
    ): CancelablePromise<BaseResponse_SubmitVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/submit/getById',
            query: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listSubmitById
     * @param submitQueryRequest submitQueryRequest
     * @returns BaseResponse_Page_SubmitVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listSubmitByIdUsingPost(
        submitQueryRequest: SubmitQueryRequest,
    ): CancelablePromise<BaseResponse_Page_SubmitVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/submit/list/page',
            body: submitQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
}
